<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>Title</title>

</head>
<body>
<br/>
<div align="center">
    <img src="http://pic.picbook.ybsltdh.com/{{book.cover}}" alt=""/>
</div>
<br/>
<div align="center">
    <form action="update">
        <input type="hidden" name ='id' value="{{book.id}}"  />
        <input type="hidden" name ='cover' value="{{book.cover}}"/>
        名字: <input type="text" name="name" value="{{book.name}}"/><br/>
        描述: <input type="text" name="desc" value="{{book.desc}}"/><br/>
        系列:<select name="seriesid" size="4">
        {% for ser in series%}
        <option value="{{ser.id}}" {%if ser.id == book.seriesid%} selected="selected"{%endif%}>{{ser.name}}</option>
        {% endfor %}
    </select>

    状态:

    <select name="status" size="4">
        <option value="1" {%if book.status == 1%} selected="selected"{%endif%}>图片就绪</option>
        <option value="2" {%if book.status == 2%} selected="selected"{%endif%}>图片声音就绪</option>
        <option value="3" {%if book.status == 3%} selected="selected"{%endif%}>文字就绪</option>
        <option value="4" {%if book.status == 4%} selected="selected"{%endif%}>上线</option>
    </select> <br/>


    <input type="submit" value="Submit"/>
</form>
<form action="uploadmp3" method="post" enctype="multipart/form-data">

<input type="file" name="file" /><br />

<input type="submit" value="Upload" />

</form>
</div>
<hr/>
<div>
    {% for page in pages %}
    <img src="http://pic.picbook.ybsltdh.com/{{page}}" width="120px" id="Img1"/>
    {% endfor%}
</div>

</body>
        </html>